﻿/*
* ============================================================================
* GNU Lesser General Public License
* ============================================================================
*
* BYDAN - Free Java BYDAN library.
* Copyright (C) 2008 
* 
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* 
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
* 
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
* 
* BYDAN Corporation
*/
package ByDan.AulaVirtual.Presentation.Reporte.Source;

import java.util.ArrayList;
import ByDan.Framework.AulaVirtual.Business.Entities.GeneralEntity;
import ByDan.Framework.AulaVirtual.Business.Entities.Mensajes;
import ByDan.Framework.AulaVirtual.Utils.ParameterDbType;
import ByDan.Framework.AulaVirtual.Utils.ParameterType;
import ByDan.Framework.AulaVirtual.Utils.ParametersMaintenance;
import ByDan.Framework.AulaVirtual.Utils.ParameterMaintenance;
import ByDan.Framework.AulaVirtual.Utils.ParameterValue;
import ByDan.Framework.AulaVirtual.Utils.ParametersType;
import ByDan.AulaVirtual.Business.Entities.*;
import ByDan.AulaVirtual.Business.Logic.CatalogoUrlLogic;
import ByDan.AulaVirtual.Business.Logic.CatalogoUrlLogicAdditional;
import ByDan.Framework.AulaVirtual.Utils.DeepLoadType;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import java.sql.*;

public class CatalogoUrlBean extends CatalogoUrl
{
	
	
	Object relationship_paginasDescripcionReporte;
	
	
	public Object getRelationship_paginasDescripcionReporte()
	{
		return relationship_paginasDescripcionReporte;
	}

	
	
	public  void  setRelationship_PaginaDescripcionReporte(Object paginas)
	{
		try
		{
			this.relationship_paginasDescripcionReporte=paginas;
		}
		catch(Exception ex)
		{
			;
		}
	}

	
	
	String field_bigIdTipoUrlDescripcionReporte;
	
	
	
	
	
	
	
	
	
				
	public CatalogoUrlBean  ()
    {
 		field_bigIdTipoUrlDescripcionReporte="";
 		
 		
 		
 		
 		
 		
 		
 		
 		
    } 
	
	     
    
	public String getField_bigIdTipoUrlDescripcionReporte()
	{
		return field_bigIdTipoUrlDescripcionReporte;
	}
    
    
    
    
    
    
    
    
    
	
    
	public void setField_bigIdTipoUrlDescripcionReporte(String newField_bigIdTipoUrlDescripcionReporte)throws Exception
	{
		try
		{
			this.field_bigIdTipoUrlDescripcionReporte=newField_bigIdTipoUrlDescripcionReporte;
		}
		catch(Exception ex)
		{
			throw ex;
		}
	}
    
    
    
    
    
    
    
    
    
		
	public static ArrayList<CatalogoUrlBean> TraerCatalogoUrlBeans(ArrayList<CatalogoUrl> catalogourls)throws Exception
    {
		ArrayList<CatalogoUrlBean> catalogourlbeans=new ArrayList<CatalogoUrlBean>();	
		CatalogoUrlBean catalogourlbean;
				
		try
		{
			for(CatalogoUrl catalogourl:catalogourls)
			{
			
				catalogourlbean=new CatalogoUrlBean();
				
				catalogourlbean.setId(catalogourl.getId());	
				catalogourlbean.setField_bigIdTipoUrl(catalogourl.getField_bigIdTipoUrl());
				catalogourlbean.setField_bigIdTipoUrlDescripcionReporte(CatalogoUrlLogicAdditional.getRelationship_TipoUrlDescripcion(catalogourl.getRelationship_TipoUrl()));	
				catalogourlbean.setVersionRow(catalogourl.getVersionRow());	
				catalogourlbean.setField_strCodigo(catalogourl.getField_strCodigo());	
				catalogourlbean.setField_strNombre(catalogourl.getField_strNombre());	
				catalogourlbean.setField_strHtmlinicial(catalogourl.getField_strHtmlinicial());	
				catalogourlbean.setField_strHtmlfinal(catalogourl.getField_strHtmlfinal());	
				catalogourlbean.setField_strCssinicial(catalogourl.getField_strCssinicial());	
				catalogourlbean.setField_strCssfinal(catalogourl.getField_strCssfinal());	
				catalogourlbean.setField_strXmljasperinicial(catalogourl.getField_strXmljasperinicial());	
				catalogourlbean.setField_strXmljasperfinal(catalogourl.getField_strXmljasperfinal());	
				catalogourlbean.setField_strPathicono(catalogourl.getField_strPathicono());	
				
				
				catalogourlbean.setRelationship_PaginaDescripcionReporte(new JRBeanCollectionDataSource(PaginaBean.TraerPaginaBeans(catalogourl.getRelationship_paginas())));	
							
				catalogourlbeans.add(catalogourlbean);
			}
		}
		catch(Exception ex)
		{
			throw ex;
		}
		
		return catalogourlbeans;
    }
}
